﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Koeltp.DataAccess;

public partial class admin_UserManagement_userlist : System.Web.UI.Page
{
    private IDataAccess da = IDataAccessFactory.CreateDataAccess();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            GetUserInfo();
        }
    }
    private void GetUserInfo()
    {
        string sql = "select top(40) * from T_Users";
        DataTable dt = new DataTable();
        dt = da.GetTable(sql, dt, CommandType.Text);
        GridView1.DataSource = dt;
        GridView1.DataBind();
    }
}